home *** CD-ROM | disk | FTP | other *** search
-
- ( Example which creates spiral by using given number of spheres
-
- : CrSpiral
- PARAM
- VARIABLE iCnt ( number of spheres
- FVARIABLE fSize ( size for spheres
- ENDPARAM
-
- iLOCK_EXCL O_LOCK
- iCnt FETCH 0 DO
- ( position for the sphere to be created
- I 0.1 F* SIN I 100 F/ F*
- I 0.1 F* COS I 100 F/ F*
- I 100 F/
-
- ( size of the sphere
- fSize FFETCH 0 0 ( a )
- 0 fSize FFETCH 0 ( b )
- 0 0 fSize FFETCH ( c )
-
- ( other attributes
- 255 255 255 0 ( RGBA )
- "ellipsoid"
- 0 ( flags )
- "CEND"
- C_ELLIPSOID DROP
- LOOP
- iLOCK_REMOVE O_LOCK
- ;
-
- CrSpiral
-